package com.kmust.dream.wanderingdream.shoppingcart.service;

import com.kmust.dream.wanderingdream.comm.pojo.ResultBean;
import com.kmust.dream.wanderingdream.shoppingcart.entity.ShoppingCartItem;
import com.baomidou.mybatisplus.extension.service.IService;
import com.kmust.dream.wanderingdream.shoppingcart.vo.SciOrderPreVO;


/**
 *
 */
public interface ShoppingCartItemService extends IService<ShoppingCartItem> {

    ResultBean getAllItems();

    ResultBean getItemsByUsername(String username);

    ResultBean addItem(ShoppingCartItem shoppingCartItem);

    ResultBean updateItem(ShoppingCartItem shoppingCartItem);

    ResultBean deleteItem(Integer itemId);

    ResultBean updateItemNumber(Integer itemId, Integer flagNumber, Integer stock);

    ResultBean getSciDel(String username);

    ResultBean createOrder(SciOrderPreVO sciOrderPreVO);
}
